package cn.netbox.spring.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description:
 * date: 2021/11/27 20:14
 * author: Alex
 * version: 1.0
 */
@Component("myHome")
public class Home {
    @Value("厦门")
    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Home{" +
                "address='" + address + '\'' +
                '}';
    }
}
